{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-title">
        <h5>继续发送</h5>
    </div>
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <input type="hidden" name="id" value="{$data.w_id}">
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">客户名称：</label>
                <div class="layui-input-block">
                    <input type="text" placeholder="客户名称" class="layui-input layui-disabled" value="{$data.w_server_name}" disabled>
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">工单名称：</label>
                <div class="layui-input-block">
                    <input type="text"  placeholder="工单名称" class="layui-input layui-disabled" value="{$data.w_work_name}" disabled>
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">状态：</label>
                <div class="layui-input-block">
                    <input type="radio" name="status" title="图片" lay-filter="type" {eq name="$data.w_type" value="1"}checked{/eq} disabled>
                    <input type="radio" name="status" title="表格" lay-filter="type" {eq name="$data.w_type" value="2"}checked{/eq} disabled>
                    <input type="radio" name="status" title="PDF" lay-filter="type" {eq name="$data.w_type" value="3"}checked{/eq} disabled>
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <label class="layui-form-label">用户：</label>
                <div class="layui-input-block">
                    <select name="user" lay-verify="required" xm-select="select1" xm-select-search="" xm-select-search-type="dl">
                        <option value="">请选择用户</option>
                        {if !empty($user)}
                        {foreach name="$user" item="vo"}
                            <option value="{$vo.m_id}" {in name="$vo.m_id" value=":implode(',',$uid)"}selected  disabled{/in}>{$vo.m_name}</option>
                        {/foreach}
                        {/if}
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="component-form-element">保存
                    </button>
                    <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    layui.use(['form'], function() {
        var form = layui.form;
        form.on('submit(component-form-element)', function (data) {
            $('.layui-btn').addClass('layui-disabled').attr('disabled','disabled');
            $.ajax({
                url:"{:url('orderEdit')}",
                type:'post',
                dataType:'json',
                data:data.field,
                success:function(res){
                    if (res.code == 200) {
                        wk.success(res.msg,"{:url('Order/workOrder')}")
                    } else {
                        wk.error(res.msg,'','$(".layui-btn").removeClass(\'layui-disabled\').removeAttr(\'disabled\');');
                    }
                }
            })
        });
    });
</script>
</body>
</html>